package aad.storyboard.model;

/**
 *State pattern: depending on whether a story component has already been started, start() will be triggrered or not 
 */
public class StoryComponentStoppedState implements StoryComponentState{
	
	Scene scene;
	Chapter chapter;
	Story story;
	
	@Override
	public void start(int currentTime, StoryComponent comp) {
		
			if (currentTime>=comp.getStartTime())			
			comp.setNewState(comp.getStartedState());
			//System.out.println("=== StoryComponent Stopped State Updating current comp===");		
	}
	
	public StoryComponentStoppedState()
	{
		//System.out.println("=== StoryComponent Stopped State ===");
		story=Story.getInstance();
	}

	@Override
	public void restart(StoryComponent comp) {
		System.out.println("StoryComponent is stopped and stays stopped");
		
	}

	
	

}